package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.dto.PurchaseOrderQueryDto;
import com.group.eams.pojo.entity.PurchaseOrder;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;
import com.group.eams.pojo.vo.PurchaseOrderListVo;
import com.group.eams.service.PurchaseOrderService;
import com.group.eams.mapper.PurchaseOrderMapper;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【purchase_order(采购订单表)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class PurchaseOrderServiceImpl extends ServiceImpl<PurchaseOrderMapper, PurchaseOrder>
implements PurchaseOrderService{

    @Override
    public Page<PurchaseOrderListVo> findPurchaseOrderList(Page<PurchaseOrder> page, PurchaseOrderQueryDto purchaseOrderQueryDto) {
        return getBaseMapper().findPurchaseOrderList(page, purchaseOrderQueryDto);
    }

    @Override
    public PurchaseOrder findByApplicationNum(String applicationNum) {
        return getBaseMapper().findByApplicationNum(applicationNum);
    }

    @Override
    public Page<FixedAssetDetailListVo> findByQueryDto(Page<FixedAssetDetailListVo> page, FixedAssetDetailQueryDto fixedAssetDetailQueryDto) {
        return getBaseMapper().findByQueryDto(page, fixedAssetDetailQueryDto);
    }
}
